package io.techery.progresshint.addition.widget;

import io.techery.progresshint.ProgressHintDelegate;
import io.techery.progresshint.addition.VerticalProgressHintDelegate;
import ohos.agp.components.AttrSet;
import ohos.agp.components.Slider;
import ohos.app.Context;

public class VerticalSeekBar extends com.warkiz.widget.VerticalSeekBar implements
        ProgressHintDelegate.SeekBarHintDelegateHolder {
    private ProgressHintDelegate hintDelegate;

    /**
     * VerticalSeekBar Instance
     *
     * @param context 上下文
     */
    public VerticalSeekBar(Context context) {
        this(context, null);
    }

    /**
     * VerticalSeekBar Instance
     *
     * @param context 上下文
     * @param attrSet attrSet
     */
    public VerticalSeekBar(Context context, AttrSet attrSet) {
        this(context, attrSet, null);
    }

    /**
     * VerticalSeekBar Instance
     *
     * @param context 上下文
     * @param attrSet attrSet
     * @param styleName styleName
     */
    public VerticalSeekBar(Context context, AttrSet attrSet, String styleName) {
        super(context, attrSet, styleName);
        hintDelegate = new VerticalProgressHintDelegate(new Slider(getContext()), attrSet, styleName);
    }

    @Override
    public ProgressHintDelegate getHintDelegate() {
        return hintDelegate;
    }

    @Override
    public int getMarginLeftByPercent() {
        return 0;
    }

    @Override
    public int getMarginRightByPercent() {
        return 0;
    }

    @Override
    public int getMarginTopByPercent() {
        return 0;
    }

    @Override
    public int getMarginBottomByPercent() {
        return 0;
    }
}
